package create.factory.method;

import create.factory.simple.AppleC;
import create.factory.simple.HPC;

/**
 * Created by lie on 2017/10/30.
 */
public class Test {
    public static void main(String[] args){
        GDComputerFactory factory = new GDComputerFactory();
        AppleC computer = factory.createComputer(AppleC.class);
        computer.start();
        HPC hpc = factory.createComputer(HPC.class);
        hpc.start();
    }
}
